#ifdef GL_ES
precision highp float;
#endif

uniform sampler2D uSamplers[32];

varying vec2 vTextureCoord;
varying float vTextureIndex;

void main(void) {
    int idx = int(vTextureIndex);
    gl_FragColor = texture2D(uSamplers[idx], vTextureCoord);
}
